<html><head><title>
dlib/test/CMakeLists.txt
</title></head><body bgcolor='white'><pre>
<font color='#009900'>#</font>
<font color='#009900'># This is a CMake makefile.  You can find the cmake utility and</font>
<font color='#009900'># information about it at http://www.cmake.org</font>
<font color='#009900'>#</font>

<font color='blue'>cmake_minimum_required</font>(VERSION 2.8.4)

<font color='#009900'># create a variable called target_name and set it to the string "<font color='#CC0000'>dtest</font>"</font>
<font color='blue'>set </font>(target_name dtest)
<font color='blue'>PROJECT</font>(${<font color='#BB00BB'>target_name</font>})

<font color='#009900'># compile the dlib/all/source.cpp file into its own object just to make sure it compiles</font>
<font color='blue'>set</font>(DLIB_TEST_COMPILE_ALL_SOURCE_CPP ON)

<font color='blue'>include</font>(../cmake)

<font color='#009900'># This variable contains a list of all the tests we are building</font>
<font color='#009900'># into the regression test suite.</font>
<font color='blue'>set </font>(tests
   example.cpp
   active_learning.cpp
   any.cpp
   any_function.cpp
   array2d.cpp
   array.cpp
   assignment_learning.cpp
   base64.cpp
   bayes_nets.cpp
   bigint.cpp
   binary_search_tree_kernel_1a.cpp
   binary_search_tree_kernel_2a.cpp
   binary_search_tree_mm1.cpp
   binary_search_tree_mm2.cpp
   bridge.cpp
   bsp.cpp
   byte_orderer.cpp
   cca.cpp
   clustering.cpp
   cmd_line_parser.cpp
   cmd_line_parser_wchar_t.cpp
   compress_stream.cpp
   conditioning_class_c.cpp
   conditioning_class.cpp
   config_reader.cpp
   correlation_tracker.cpp
   crc32.cpp
   create_iris_datafile.cpp
   data_io.cpp
   directed_graph.cpp
   discriminant_pca.cpp
   disjoint_subsets.cpp
   ekm_and_lisf.cpp
   empirical_kernel_map.cpp
   entropy_coder.cpp
   entropy_encoder_model.cpp
   example_args.cpp
   face.cpp
   fft.cpp
   fhog.cpp
   filtering.cpp
   find_max_factor_graph_nmplp.cpp
   find_max_factor_graph_viterbi.cpp
   geometry.cpp
   graph.cpp
   graph_cuts.cpp
   graph_labeler.cpp
   hash.cpp
   hash_map.cpp
   hash_set.cpp
   hash_table.cpp
   hog_image.cpp
   image.cpp
   iosockstream.cpp
   is_same_object.cpp
   kcentroid.cpp
   kernel_matrix.cpp
   kmeans.cpp
   learning_to_track.cpp
   least_squares.cpp
   linear_manifold_regularizer.cpp
   lspi.cpp
   lz77_buffer.cpp
   map.cpp
   matrix2.cpp
   matrix3.cpp
   matrix4.cpp
   matrix_chol.cpp
   matrix.cpp
   matrix_eig.cpp
   matrix_lu.cpp
   matrix_qr.cpp
   max_cost_assignment.cpp
   max_sum_submatrix.cpp
   md5.cpp
   member_function_pointer.cpp
   metaprogramming.cpp
   mpc.cpp
   multithreaded_object.cpp
   numerical_integration.cpp
   object_detector.cpp
   oca.cpp
   one_vs_all_trainer.cpp
   one_vs_one_trainer.cpp
   optimization.cpp
   optimization_test_functions.cpp
   opt_qp_solver.cpp
   parallel_for.cpp
   parse.cpp
   pipe.cpp
   pixel.cpp
   probabilistic.cpp
   pyramid_down.cpp
   queue.cpp
   rand.cpp
   ranking.cpp
   read_write_mutex.cpp
   reference_counter.cpp
   rls.cpp
   sammon.cpp
   scan_image.cpp
   sequence.cpp
   sequence_labeler.cpp
   sequence_segmenter.cpp
   serialize.cpp
   set.cpp
   sldf.cpp
   sliding_buffer.cpp
   smart_pointers.cpp
   sockets2.cpp
   sockets.cpp
   sockstreambuf.cpp
   sparse_vector.cpp
   stack.cpp
   static_map.cpp
   static_set.cpp
   statistics.cpp
   std_vector_c.cpp
   string.cpp
   svm_c_linear.cpp
   svm_c_linear_dcd.cpp
   svm.cpp
   svm_multiclass_linear.cpp
   svm_struct.cpp
   svr_linear_trainer.cpp
   symmetric_matrix_cache.cpp
   thread_pool.cpp
   threads.cpp
   timer.cpp
   tokenizer.cpp
   trust_region.cpp
   tuple.cpp
   type_safe_union.cpp
   vectorstream.cpp
   )

<font color='#009900'># Tests that require C++11 support</font>
<font color='blue'>if </font>(COMPILER_CAN_DO_CPP_11)
<font color='blue'>   set</font>(tests ${<font color='#BB00BB'>tests</font>}
      dnn.cpp
      cublas.cpp
      find_optimal_parameters.cpp
      elastic_net.cpp
      )
<font color='blue'>endif</font>()


<font color='#009900'># add all the cpp files we want to compile to this list.  This tells</font>
<font color='#009900'># cmake that they are part of our target (which is the executable named dtest)</font>
<font color='blue'>ADD_EXECUTABLE</font>(${<font color='#BB00BB'>target_name</font>} main.cpp tester.cpp ${<font color='#BB00BB'>tests</font>})

<font color='#009900'># Turn on all warnings when using gcc.</font>
<font color='blue'>if </font>(CMAKE_COMPILER_IS_GNUCXX)
<font color='blue'>   add_definitions</font>("<font color='#CC0000'>-W -Wall</font>")
<font color='blue'>endif</font>()


<font color='blue'>TARGET_LINK_LIBRARIES</font>(${<font color='#BB00BB'>target_name</font>} dlib )


<font color='blue'>if </font>(NOT DLIB_NO_GUI_SUPPORT)
<font color='blue'>   add_subdirectory</font>(gui)<a href='gui)/CMakeLists.txt.html'></a>
<font color='blue'>   add_subdirectory</font>(examples)<a href='examples)/CMakeLists.txt.html'></a>
<font color='blue'>   add_subdirectory</font>(tools)<a href='tools)/CMakeLists.txt.html'></a>
<font color='blue'>endif</font>()


</pre></body></html>
